﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace TrafficApp
{
    public abstract class Traffic
    {
        
        /// <summary>
        /// Location of the traffic component
        /// </summary>
        public Vector loc;

        ///// <summary>
        ///// 0 = North, 90 = East, 180 = South, 270 = West (359 max)
        ///// </summary>
        //protected int angle;

        /// <summary>
        /// 0 = stop  1 &gt; moving
        /// </summary>
        protected int speed;

        protected Vector velocity;

        public Traffic(Vector tLocation, Vector tVelocity)
        {
            loc = tLocation;
            velocity = tVelocity;
        }

        /// <summary>
        /// reuses traffic
        /// </summary>
        public void ReUse(Vector tVector, Vector tVelocity)
        {
            loc = tVector;
            velocity = tVelocity;
        }
    }
}
